-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for gists #172
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HowardWolosky
added
api completeness
This is basic API functionality that hasn't been implemented yet.
api-gists
Work to complete the API's defined here: https://developer.github.com/v3/gists/
labels
May 14, 2020
80 tasks
HowardWolosky
force-pushed
the
gists
branch
3 times, most recently
from
June 29, 2020 05:38
45fd35e
to
c1e16c6
Compare
HowardWolosky
force-pushed
the
gists
branch
2 times, most recently
from
July 14, 2020 22:47
c2c3b7f
to
e275505
Compare
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
HowardWolosky
force-pushed
the
gists
branch
3 times, most recently
from
July 16, 2020 19:44
abede4c
to
e473bd3
Compare
3 tasks
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
Adds full support for all gist related API's (core and comments) as described in https://developer.github.com/v3/gists/ and https://developer.github.com/v3/gists/comments/. * No tests yet. * Test-GitHubGistStarred doesn't appear to be working right, despite being coded against the proper API spec.
Also: Add abilility to download gists Add Set-GitHubGistStar helper Re-order Content/FileName parameters Switch to [System.IO.File]::ReadAllText() for reading files Add gistfile detection/error handling Add confirmation for removing gist files Add helpers: Remove-GitHubGistFile Set-GitHubGistFile Rename-GitHubGistFile
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api completeness
This is basic API functionality that hasn't been implemented yet.
api-gists
Work to complete the API's defined here: https://developer.github.com/v3/gists/
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This completes the required work to support the full set of API's around gists.
It adds the following functions:
Get-GitHubGist
Remove-GitHubGist
Copy-GitHubGist
(aka.Fork-GitHubGist
)Add-GitHubGistStar
Remove-GitHubGistStar
Set-GitHubGistStar
(just a wrapper aroundAdd/Remove-GitHubGistStar
Test-GitHubGistStar
New-GitHubGist
Set-GitHubGist
Rename-GitHubGistFile
(exposed helper function)Remove-GitHubGistFile
(exposed helper function)Set-GitHubGistFile
(exposed helper function, also known asAdd-GitHubGistFile
)Get-GitHubGistComment
Set-GitHubGistComment
New-GitHubGistComment
Remove-GitHubGistComment
This also adds formatters for all newly introduced types:
GitHub.Gist
,GitHub.GistCommit
,GitHub.GistDetail
, andGitHub.GistFork
.Positional Binding has been set as
false
, andPosition
attributes added to the functions' mandatory parameters.Issues Fixed
Fixes #32
References
GitHub Gist
GitHub Gist Comments
Checklist
If desired, ensure your name is added to our Contributors list